package com.hst.capacity.domain.model.request;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

@Data
public class SignInParam {

    @NotEmpty(message = "用户名不能为空！")
    @Length(min = 3, max = 20, message = "账号长度为 3-20 位。")
    private String username;

    @NotEmpty(message = "用户密码不能为空！")
    private String password;

}
